import request from '@/utils/request'

// 查询就业帮扶列表
export function listAssist(query) {
  return request({
    url: '/employment/assist/list',
    method: 'get',
    params: query
  })
}

// 查询就业帮扶详细
export function getAssist(id) {
  return request({
    url: '/employment/assist/' + id,
    method: 'get'
  })
}

// 新增就业帮扶
export function addAssist(data) {
  return request({
    url: '/employment/assist',
    method: 'post',
    data: data
  })
}

// 修改就业帮扶
export function updateAssist(data) {
  return request({
    url: '/employment/assist',
    method: 'put',
    data: data
  })
}

// 删除就业帮扶
export function delAssist(id) {
  return request({
    url: '/employment/assist/' + id,
    method: 'delete'
  })
}

// 帮扶移交
export function handOver(row) {
  return request({
    url: '/employment/assist/transfer',
    method: 'post',
    data: row
  })
}

// 完成帮扶任务
export function handFinish(id) {
  return request({
    url: '/employment/assist/finish/' + id,
    method: 'get',
  })
}
